/*
WebPageTest Global Header.
*/

:root {
  /* NOTE! Keep this in sync with the breakpoints below, it is for the JS */
  --wpt-header-layoutchange: 86em;
}
wpt-header {
  --wpt-header-text: #fff;
  --wpt-header-activeborder: rgba(255, 255, 255, 0.2);
  --wpt-header-border: #fff;
  --wpt-header-background: #1e4078;
  --wpt-user-icon: url(/assets/images/icon-user.svg) left 50% no-repeat;
}
wpt-header * {
  transition: color 0.4s linear, background-color 0.4s linear;
}
.account-layout wpt-header,
body.history wpt-header,
body.about wpt-header,
body.four-oh-four wpt-header,
body.common wpt-header,
body.video wpt-header,
body.compare:not(.compare-experiment, .compare-single) wpt-header,
body.compare-loading wpt-header,
body.feature-cc wpt-header {
  --wpt-header-text: #1e4078;
  --wpt-header-activeborder: #091a3f33;
  --wpt-header-border: #fff;
  --wpt-header-background: #fff;
}

wpt-header {
  width: 100%;
  grid-column: 1 / 13;
  position: relative;
  z-index: 9999999;
  background: none;
  border: none;
}
/* for compat with systems that set box-sizing globally */
wpt-header * {
  box-sizing: content-box;
}

cp-header {
  background: #3578bd;
  display: block;
  border-bottom: 1px solid var(--wpt-header-border);
}
cp-header a {
  display: flex;
  width: 100%;
  align-content: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border: 0;
  max-width: 1400px;
  margin: 0 auto;
  height: 4.5rem;
  box-sizing: border-box;
}
cp-header a svg,
cp-header a object,
cp-header a img {
  max-width: 192px;
  flex: 1 1 auto;
}

wpt-header header {
  position: relative;
  color: var(--wpt-header-text);
  font-family: Open Sans, sans-serif;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  align-content: top;
  box-shadow: none;
  border-bottom: 1px solid var(--wpt-header-activeborder);
  background: transparent;
  margin-bottom: -6rem;
}

wpt-header a {
  color: #fff;
  text-decoration: none;
}

wpt-header .wptheader_logo_container > p {
  margin: 0;
}

wpt-header .wptheader_logo_container {
  position: relative;
  flex: 1 1 50%;
  height: 4.5rem;
  max-height: 4.5rem;
  display: flex;
  box-sizing: border-box;
  align-content: center;
  align-items: center;
  background: none;
  font-weight: 300;
  font-size: 0.9em;
  margin: 0;
  padding-left: 1.5rem;
}
wpt-header .wptheader_logo a {
  color: var(--wpt-header-text);
}

wpt-header .wptheader_logo a.pill {
  padding: 0.5em 1em;
}
wpt-header .wptheader_logo a:hover,
wpt-header .wptheader_logo a:focus {
  text-decoration: underline;
}
wpt-header .wptheader_logo a:first-child {
  margin-right: 0.7rem;
}
wpt-header .wptheader_logo a:last-child {
  font-weight: 700;
}
wpt-header .wptheader_logo a:first-child:after {
  content: "";
  border-left: 5px solid var(--wpt-header-text);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  width: 0;
  height: 0;
  vertical-align: top;
  padding: 0;
  font-size: 0;
  margin-left: 0.7rem;
}

@media (min-width: 50em) {
  cp-header a {
    padding-left: 3rem;
  }
  wpt-header .wptheader_logo_container {
    padding-left: 3rem;
  }
}

wpt-header .wptheader_logo img {
  width: 120px;
  max-width: 70%;
}

wpt-header .wptheader_menu {
  display: contents;
}

wpt-header .wptheader_menubtn {
  flex: 0 0 25%;
  max-width: 4.5rem;
  padding: 1em 0;
  height: 4.5rem;
  max-height: 4.5rem;
  box-sizing: border-box;
  color: var(--wpt-header-text);
  border: 0;
  background: transparent url(/assets/images/wpt-header-menubtn.svg) 50% 50%
    no-repeat;
  text-indent: -9999px;
  background-size: 16px auto;
  cursor: pointer;
  outline: none;
}

wpt-header .wptheader_menu[open] .wptheader_menubtn {
  background-image: url(/assets/images/wpt-header-menubtn-close.svg);
  background-color: #fff;
}

wpt-header .wptheader_menubtn:hover,
wpt-header .wptheader_menubtn:focus {
  background-color: #fff;
}

wpt-header .wptheader_menubtn-expanded {
  background: url(/assets/images/wpt-header-menubtn-close.svg) 50% 50% no-repeat;
}

wpt-header nav {
  display: block;
  background: #141e33;
  color: #fff;
  top: calc(4.5rem + 1px);
  position: absolute;
  width: 90%;
  right: 0;
  z-index: 1000;
  box-shadow: -5px 2px 5px rgba(0, 0, 0, 0.2);
  min-height: calc(100vh - 4.5rem + 4px);
  /* box-shadow: none; */
}

wpt-header ul,
wpt-header .wptheader_nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

wpt-header .wptheader_nav ul.wptheader_nav_menu_linkgrid {
  display: flex;
  flex-flow: row wrap;
}

wpt-header .wptheader_nav ul.wptheader_nav_menu_linkgrid li {
  flex: 1 1 50%;
  display: flex;
}

wpt-header .wptheader_nav ul.wptheader_nav_menu_linkgrid li:before {
  display: none;
}

wpt-header summary::-webkit-details-marker {
  display: none;
}

wpt-header li > a,
wpt-header li summary {
  padding: 1.5rem;
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

wpt-header .wptheader_nav details[open] .wptheader_nav_menu_content {
  background: #fff;
}

wpt-header .wptheader_nav li.wptheader-current > a,
wpt-header .wptheader_nav li.wptheader-current > summary {
  background: #101623;
}

wpt-header .wptheader_nav_menu_content {
  padding: 0 1.5rem 1rem;
  background: #fff;
  color: #222;
}

wpt-header .wptheader_acct {
  display: flex;
  margin: 0 1rem;
  padding: 0 1rem 0 2rem;
  background: var(--wpt-user-icon);
}

wpt-header .wptheader_acct a,
wpt-header .wptheader_acct button[type="submit"] {
  background: none;
  font-size: 1em;
  border: 0;
  cursor: pointer;
  padding: 0 1rem;
  margin: 0;
}

wpt-header .wptheader_acct a:hover,
wpt-header .wptheader_acct button:hover {
  text-decoration: underline;
}

wpt-header .wptheader_acct li:first-child {
  border-right: 1px solid var(--wpt-header-activeborder);
}

wpt-header .wptheader_nav_menu a span,
wpt-header .wptheader_nav_menu summary span {
  display: flex;
  align-items: center;
  line-height: 1.3;
  justify-content: space-between;
  width: 100%;
}

wpt-header .wptheader_nav_menu summary span:after {
  content: "";
  border-top: 5px solid #fff;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  vertical-align: middle;
  margin-left: 0.5rem;
}

wpt-header .wptheader_nav_menu_link a {
  padding: 0.5em 0;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
}

wpt-header .wptheader_nav_menu_link a:hover,
wpt-header .wptheader_nav_menu_link a:focus {
  text-decoration: underline;
}

wpt-header a.wptheader-current {
  cursor: default;
  pointer-events: none;
}

wpt-header .wptheader_nav_menu_link:before {
  content: "";
  border-left: 5px solid green;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  width: 0;
  height: 0;
}

wpt-header .wptheader_nav_menu_section img {
  max-width: 60%;
}

wpt-header .wptheader_nav_menu_section a {
  color: #1e4078;
}

wpt-header .wptheader_nav_menu_content ul {
  margin-bottom: 1rem;
}

wpt-header .wptheader_nav_menu_content .nested ul {
  margin-left: 1rem;
}

wpt-header .wptheader_nav_menu_content li {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

wpt-header .wptheader_nav_cta {
  border-top: 1px solid #ddd;
  padding-top: 2rem;
  font-size: 1.2rem;
  display: flex;
  gap: 1rem;
  font-weight: 300;
  align-items: center;
}

wpt-header .wptheader_nav_cta a {
  background: #1e4078;
  border-radius: 2em;
  padding: 0.6em 1em;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

wpt-header .wptheader_nav_title {
  font-weight: bold;
  -webkit-text-stroke: 1px;
  font-size: 1rem;
  margin: unset;
}

wpt-header .wptheader_nav_menu_section.nested.secondary_underline > p {
  font-weight: unset;
  text-decoration: underline;
  text-underline-position: under;
}

wpt-header .wptheader_top_right_arrow{
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid #000;
  border-left: 2px solid #000;
  transform: rotate(90deg);
  margin-bottom: 6px;
}

wpt-header .wptheader_top_right_arrow::after{
  content: "";
  display: block;
  width: 1.8px;
  height: 15.5px;
  background-color: #000;
  transform: rotate(-45deg) translate(5px, 1.5px);
  left: 0;
  top: 0;
}

wpt-header .wptheader_nav li details[open] {
  background: var(--wpt-header-text);
  color: var(--wpt-header-border);
}

wpt-header .wptheader_nav > li > a:hover,
wpt-header .wptheader_nav > li > a:focus,
wpt-header .wptheader_nav details:hover summary,
wpt-header .wptheader_nav details:focus summary {
  background: #1e4078;
  color: #fff;
}

wpt-header .wptheader_nav details[open] summary,
wpt-header .wptheader_nav details[open] summary {
  background: #fff;
  color: #1e4078;
}

wpt-header .wptheader_nav_menu details:hover summary span:after,
wpt-header .wptheader_nav_menu details:focus summary span:after {
  border-top-color: #fff;
}
wpt-header .wptheader_nav_menu details[open] summary span:after {
  border-top-color: #101623;
}

wpt-header #new_experience {
  margin-left: 2rem;
  background-color: #8348C7;
  font-weight: normal;
  cursor: pointer;
}

wpt-header #new_experience:hover {
  margin-left: 2rem;
  background-color: #542985;
  font-weight: normal;
  cursor: pointer;
}

@media (min-width: 86em) {
  wpt-header {
    z-index: 999999;
  }
  cp-header a {
    padding-left: 1.5rem;
  }
  wpt-header a,
  wpt-header .wptheader_nav details summary span,
  wpt-header .wptheader_nav details summary span {
    color: var(--wpt-header-text);
  }
  wpt-header .wptheader_nav li > a:hover,
  wpt-header .wptheader_nav li > a:focus,
  wpt-header .wptheader_nav details:hover summary,
  wpt-header .wptheader_nav details:focus summary {
    background: transparent;
  }
  wpt-header .wptheader_nav li > a:hover span,
  wpt-header .wptheader_nav li > a:focus span,
  wpt-header .wptheader_nav li details[open] summary span,
  wpt-header
    .wptheader_nav
    li
    details:focus
    summary
    span
    .wptheader_nav
    li
    details
    summary:hover
    span {
    background: var(--wpt-header-text);
    color: var(--wpt-header-background);
  }
  wpt-header .wptheader_nav_menu summary span:after {
    border-top: 5px solid var(--wpt-header-text);
  }
  wpt-header .wptheader_nav_menu details[open] summary span:after {
    border-top: 5px solid var(--wpt-header-background);
  }
  wpt-header .wptheader_menu[open] .wptheader_menubtn {
    display: none !important;
  }
  wpt-header .wptheader_logo img {
    max-width: none;
  }
  wpt-header nav {
    position: relative;
    top: 0.75rem;
    display: flex !important;
    flex: 1 1 60%;
    width: auto;
    box-shadow: none;
    min-height: auto;
    right: auto;
    align-items: center;
    justify-content: space-between;
    background: none;
  }
  wpt-header nav > ul {
    display: flex;
    gap: 1.5rem;
  }
  wpt-header .wptheader_acct {
    margin-right: 0;
    padding-right: 0;
    gap: 0;
  }
  wpt-header nav ul li {
    display: flex;
    align-items: center;
    gap: 0.5em;
  }
  wpt-header nav ul li .wptheader_nav_menu_content {
    position: absolute;
    top: calc(100%);
    box-shadow: 0 5px 5px rgb(0 0 0 / 21%);
    min-width: 15rem;
    padding-top: 2rem;
    line-height: 1.3rem;
    border-top: 1px solid var(--wpt-header-activeborder);
  }
  wpt-header nav ul li .wptheader_nav_menu_content:before {
    content: "";
    position: absolute;
    border-bottom: 5px solid var(--wpt-header-text);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: -5px;
    margin-left: 1.5rem;
  }
  wpt-header li > a,
  wpt-header li summary {
    padding: 0;
  }
  wpt-header {
    /* background: transparent; */
    display: block;
    /* border-bottom: 1px solid #fff; */
  }
  wpt-header header {
    flex-flow: row nowrap;
    overflow: visible;
    align-content: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto -6rem;
    height: 6rem;
    margin-top: -1.5rem;
  }
  wpt-header .wptheader_logo_container {
    flex: 1 1 20%;
    top: 0.75rem;
    height: auto;
    max-height: 6rem;
    background: none;
    padding-left: 1rem;
  }
  wpt-header .wptheader_nav {
    justify-content: space-between;
    gap: 0.2rem;
  }
  wpt-header .wptheader_nav li > a,
  wpt-header .wptheader_nav li summary {
    font-size: 1rem;
    border: none;
    display: flex;
    align-content: center;
    align-self: center;
    height: 6rem;
  }
  wpt-header .wptheader_nav li > a span,
  wpt-header .wptheader_nav li summary span {
    line-height: 1.3;
    display: flex;
    padding: 0.5em 1em;
    border-radius: 2em;
    height: 1.3em;
    align-self: center;
    border: 1px solid transparent;
  }
  wpt-header li > a.wptheader-current span,
  wpt-header li > details summary.wptheader-current span {
    border-color: var(--wpt-header-activeborder);
  }
  wpt-header .wptheader_nav_menu_content li > a,
  wpt-header .wptheader_nav_menu_content summary {
    line-height: 1.3;
    height: auto;
  }
  wpt-header .wptheader_nav li details[open] {
    background: transparent;
  }
  wpt-header .wptheader_acct a,
  wpt-header .wptheader_acct button[type="submit"] {
    color: var(--wpt-header-text);
  }
  .account-layout wpt-header,
  body.history wpt-header,
  body.about wpt-header,
  body.four-oh-four wpt-header,
  body.common wpt-header,
  body.video wpt-header,
  body.compare:not(.compare-experiment, .compare-single) wpt-header,
  body.compare-loading wpt-header,
  body.feature-cc wpt-header {
    --wpt-user-icon: url(/assets/images/icon-user-dark.svg) left 50% no-repeat;
  }
}

@media (min-width: 90em) {
  wpt-header header {
    padding: 0;
  }
  wpt-header .wptheader_logo_container {
    padding-left: 1rem;
  }
}

/* animation */

@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 86em) {
    wpt-header .wptheader_menu nav {
      transform: translateX(100%);
      transition: transform 0.2s ease-out;
      transition-delay: 0.1s;
    }
    wpt-header .wptheader_menu[open] nav {
      transform: translateX(0%);
    }
  }
  @media (min-width: 86em) {
    wpt-header .wptheader_nav_menu .wptheader_nav_menu_content {
      transform: translateY(1em);
      transition: transform 0.2s ease-out;
      transition-delay: 0.1s;
    }
    wpt-header .wptheader_nav_menu details[open] .wptheader_nav_menu_content {
      transform: translateY(0);
    }
  }
}

body.compare:not(.compare-experiment) .test_results {
  padding-top: 6em;
}

/* overrides for marketing pages */
.navigation_menu + .pro_section {
  min-height: 600px !important;
  padding-top: 9rem !important;
}
.navigation_menu + div + .hero_section_block {
  margin-top: -6rem;
  padding-top: 12rem;
}
@media (min-width: 50em) {
  .navigation_menu + .pro_section {
    padding-top: 6rem !important;
  }
  .navigation_menu + div + .hero_section_block {
    margin-top: 0;
    padding-top: 12rem;
  }
}
@media (min-width: 70em) {
  .navigation_menu + .pro_section {
    min-height: 500px !important;
  }
}
